import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
// 引用地区选择器distpicker插件
import vdistpicker from 'v-distpicker'

// 导入样式
import './assets/css/bootstrap.css'
import './assets/css/index.css'

//导入dataV
import dataV from '@jiaminghi/data-view'
//使用
Vue.use(dataV)
// 注册全局地区选择器distpicker组件
Vue.component('v-distpicker', vdistpicker);

//全局注册
import esriConfig from '@arcgis/core/config'
esriConfig.apiKey = 'AAPKdb651e14b8204bd5abf0ffc20363a94cse0GEQoKoCaYa5ZlJ3v5TZi9LNz0OIL66WTsqHrzPTls3Zeq4rLC08zbB-qakYx4'

Vue.config.productionTip = false
//把axios挂载到vue的根路径下
Vue.prototype.axios = axios
axios.defaults.baseURL = 'http://172.29.137.58:800'

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
